package com.sc.VenusQueryBeta.model.hotel.tabs;

import com.hengjun.kingstar.sdk.base.BaseModel;
import com.hengjun.kingstar.sdk.helper.RetrofitCreateHelper;
import com.hengjun.kingstar.sdk.helper.RxHelper;
import com.sc.VenusQueryBeta.api.Host;
import com.sc.VenusQueryBeta.api.home.HomeApi;

import com.sc.VenusQueryBeta.contract.hotel.tabs.OverSeaContract;
import com.sc.VenusQueryBeta.model.bean.home.OverSeasBean;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2018/11/9.
 */

public class OverSeaModel extends BaseModel implements OverSeaContract.IOverSeaModel {
    @Override
    public Observable<OverSeasBean> getoversea(int vipClubId) {
        return RetrofitCreateHelper.createApi(HomeApi.class, Host.Host).getoversea(vipClubId).compose(RxHelper.<OverSeasBean>rxSchedulerHelper());
    }

    public static OverSeaModel newInstance() {
        return new OverSeaModel();
    }


}
